package com.rd.student.jiaji.class3.sunguowei.Questions;

import java.util.LinkedList;
import java.util.Random;

public class four {
    public static void main(String[] args) {
        LinkedList list=new LinkedList();
        LinkedList list1=new LinkedList();
        Random random=new Random();
        for (int i = 0; i < 10; i++) {
            int result=1+ random.nextInt(99);
//            System.out.println(result);
            list.add(result);

        }
        System.out.println(list);
        for (int i = 0; i < list.size(); i++) {
            if((int)list.get(i)>10){
                list1.add(list.get(i));
            }

        }
        System.out.println(list1);
    }

}
